
import { Route } from '@angular/router';

export const routes: Route[] = [
  {
    path: 'page1',
    title: 'Page 1',
    data: {
      url: 'page1'
    },
    loadComponent: () => import('../pages/first-page/first-page.component').then(m => m.FirstPageComponent)
  },
  {
    path: 'page2',
    title: 'Page 2',
    data: {
      url: 'page2'
    },
    loadComponent: () => import('../pages/page2/page2.component').then(m => m.Page2Component)//second-page
  },
  {
    path: 'pagination-page',
    title: 'Pagination Page',
    data: {
      url: 'pagination-page'
    },
    loadComponent: () => import('../pages/pagination-page/pagination-page.component').then(m => m.PaginationPageComponent)
  },
  {
    path: 'custom-echart',
    title: 'Custom Echart',
    data: {
      url: 'custom-echart'
    },
    loadComponent: () => import('../pages/custom-echarts/custom-echarts.component').then(m => m.CustomEchartsComponent)

  },
  {
    path: '',
    redirectTo: 'page1',
    pathMatch: 'full'
  }
];
